package com.elric.mall.mapper;

import com.elric.mall.model.ZgBaseNltx;
import com.elric.mall.model.ZgBaseNltxExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface ZgBaseNltxMapper {
    long countByExample(ZgBaseNltxExample example);

    int deleteByExample(ZgBaseNltxExample example);

    int deleteByPrimaryKey(String id);

    int insert(ZgBaseNltx record);

    int insertSelective(ZgBaseNltx record);

    List<ZgBaseNltx> selectByExample(ZgBaseNltxExample example);

    /**
     * 类nltx结构通用查询（直接传表名）
     * @param tableName
     * @return
     */
    List<ZgBaseNltx> selectCommon(@Param("tableName")String tableName);

    ZgBaseNltx selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") ZgBaseNltx record, @Param("example") ZgBaseNltxExample example);

    int updateByExample(@Param("record") ZgBaseNltx record, @Param("example") ZgBaseNltxExample example);

    int updateByPrimaryKeySelective(ZgBaseNltx record);

    int updateByPrimaryKey(ZgBaseNltx record);
}